package com.example.practical_training_projects.service;

import com.example.practical_training_projects.entity.askform;
import com.example.practical_training_projects.entity.questionform;
import com.example.practical_training_projects.mapper.askformMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class askformServicelmpl implements askformService{
    @Autowired
    private askformMapper mapper;
    @Override
    public List<askform> getAllAF() {
        return mapper.getAllAF();
    }

    @Override
    public Integer insertAF(askform af) {
        return mapper.insertAF(af);
    }

    @Override
    public Integer deleteAF(Integer af) {
        return mapper.deleteAF(af);
    }

    @Override
    public Integer updateAF(askform af) {
        return mapper.updateAF(af);
    }


    @Override
    public questionform findAFuid(Integer a_uid) {
        return mapper.findAFuid(a_uid);
    }
    @Override
    public List<askform> getAskFormsByQUid(Integer q_uid) {
        return mapper.getAskFormsByQUid(q_uid);
    }
}
